package platform.user.auth;

import org.springframework.security.core.GrantedAuthority;

/**
 * 角色权限
 * <p>基于角色分配权限模型</p>
 *
 * @author roamer
 * @version V1.0
 * @date 2019-03-10 15:23
 */
public class RoleAuthority implements GrantedAuthority {
    private static final long serialVersionUID = 1L;

    private final String role;

    public RoleAuthority(String role) {
        this.role = role;
    }

    @Override
    public String getAuthority() {
        return role;
    }
}
